import http from './../interface.js'

// GET 我的案例 /api/doctors.casestudy/listcontent
export const listcontent = (data) => {
	return http.request({
		url: '/doctors.casestudy/listcontent',
		method: 'GET',
		data,
	})
}

// GET 分类列表 /api/doctors.casestudy/index
export const index = (data) => {
	return http.request({
		url: '/doctors.casestudy/index',
		method: 'GET',
		data,
	})
}

// GET 案例详情 /api/doctors.casestudy/info
export const info = (data) => {
	return http.request({
		url: '/doctors.casestudy/info',
		method: 'GET',
		data,
	})
}

// POST 上传案例 /api/doctors.casestudy/create
export const create = (data) => {
	return http.request({
		url: '/doctors.casestudy/create',
		method: 'POST',
		data,
	})
}
// GET 删除案例 /api/doctors.casestudy/del
export const del = (data) => {
	return http.request({
		url: '/doctors.casestudy/del',
		method: 'GET',
		data,
	})
}

/**
 * 
 * @param {
 * 医生端接口-快速回复
 * } data 
 * @returns 
 */

// GET 分组列表 /api/doctors.quickreply/index
export const quIindex = (data) => {
	return http.request({
		url: '/doctors.quickreply/index',
		method: 'GET',
		data,
	})
}
// POST 分组新增 /api/doctors.quickreply/add
export const quIadd = (data) => {
	return http.request({
		url: '/doctors.quickreply/add',
		method: 'POST',
		data,
	})
}

// POST 分组编辑 /api/doctors.quickreply/edit
export const quIedit = (data) => {
	return http.request({
		url: '/doctors.quickreply/edit',
		method: 'POST',
		data,
	})
}
// GET 分组删除 /api/doctors.quickreply/del
export const quIdel = (data) => {
	return http.request({
		url: '/doctors.quickreply/del',
		method: 'GET',
		data,
	})
}
// POST 快捷回复新增 /api/doctors.quickreply/contentadd
export const quIcontentadd = (data) => {
	return http.request({
		url: '/doctors.quickreply/contentadd',
		method: 'POST',
		data,
	})
}
// GET 快捷回复删除 /api/doctors.quickreply/contentdel
export const quIcontentdel = (data) => {
	return http.request({
		url: '/doctors.quickreply/contentdel',
		method: 'GET',
		data,
	})
}
// POST 快捷回复列表 /api/doctors.quickreply/content
export const quIcontent = (data) => {
	return http.request({
		url: '/doctors.quickreply/content',
		method: 'POST',
		data,
	})
}

/**
 * 医生客户端-我的案例
 * 
 * 医生端接口-快捷回复
 * 
 *  */
export default {
	listcontent,    // GET 我的案例 /api/doctors.casestudy/listcontent
	index,          // GET 分类列表 /api/doctors.casestudy/index
	info,           // GET 案例详情 /api/doctors.casestudy/info
	create,          // POST 上传案例 /api/doctors.casestudy/create	
	del,			// GET 删除案例 /api/doctors.casestudy/del


	// 快捷回复
	quIindex,
	quIadd,
	quIedit,
	quIdel,
	quIcontentadd,
	quIcontentdel,
	quIcontent


}
